{extend name="property/public/insidePageBase" /}
{block name="title"}公司详情{/block}
{block name="body"}
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-form  layui-form-pane">
            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                <div class="layui-tab layui-tab-brief">
                    <!--物业列表 add-->
                    <table class="layui-hide" id="propertyBasicList" lay-filter="propertyBasicList"></table>
                    <!--物业列表 add-->
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
{__block__}
<script>
    layui.use(['laydate','table'], function () {
        var laydate = layui.laydate, table = layui.table;
        let cateId = {$info['id']};
        // 物业列表 add
        var tableIdPropertyBasicList = 'propertyBasicList';
        table.render({
            elem: '#'+tableIdPropertyBasicList,
            id:tableIdPropertyBasicList,
            url: '{:url("propertyBasicList")}?cate_id='+cateId,
            toolbar: '#toolPropertyBasic',
            cols: [[
                {type: "checkbox", width: 50},
                {field: 'name', width: 198, title: '物业名称'},
                {field: 'username', width: 128, title: '物业管理员'},
                {field: 'mobile', width: 128, title: '管理员电话'},
                {field: 'cover_area', width: 106, title: '占地面积', sort: true},
                {field: 'building_area', width: 106, title: '建筑面积', sort: true},
                {field: 'address', minWidth: 368,title: '所属地址'},
                {field: 'add_time', minWidth: 168, title: '创建时间', sort: true, fixed:'right'},
            ]],
            limits: [10, 15, 20, 25, 50, 100],
            limit: 15,
            page: true,
            height: 'full-100'
        });
        // 物业列表 end
    });
</script>
{/block}